package p.ithorns.framework.xxljob;

/**
 * 错误代码
 *
 * @author : fuhao
 * @since : 2023/7/28 8:43
 */
public interface XxlJobConst {

    String DATE_TIME_FORMAT = "yyyy/MM/dd HH:mm:ss";

    String FULL_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";

    /**
     * Key: ithorns-boot-starter-xxl-job-admin restapi 响应code
     */
    String XXL_JOB_RESULT_CODE = "code";

    /**
     * Key: ithorns-boot-starter-xxl-job-admin restapi 响应msg
     */
    String XXL_JOB_RESULT_MSG = "msg";

    /**
     * Key: ithorns-boot-starter-xxl-job-admin restapi响应data
     */
    String XXL_JOB_RESULT_DATA = "data";

    /**
     * 定时任务操作异常
     */
    String XXL_JOB_OP_FAILED = "定时任务操作失败！";

    /**
     * 定时任务查询异常
     */
    String XXL_JOB_QUERY_FAILED = "定时任务信息查询失败！";

    /**
     * 新增定时任务异常
     */
    String XXL_JOB_INFO_ADD_FAILED = "新增定时任务异常！";

    /**
     * 查询定时任务异常
     */
    String XXL_JOB_INFO_GET_FAILED = "查询定时任务异常！";


    /**
     * 获取执行器异常
     */
    String XXL_JOB_GROUP_GET_EXECUTOR_FAILED = "获取执行器失败！";


    /**
     * 获取COOKIE失败
     */
    String XXL_JOB_GET_COOKIE_FAILED = "获取COOKIE失败！";

}
